<template>
  <el-container>
    <el-header>
      <el-card class="head">
        <el-menu
          :default-active="activeIndex"
          class="el-menu-demo"
          mode="horizontal"
          @select="handleSelect"
          router="true"
        >
          <el-menu-item
            index="/system/lessen/onlineStudy/video"
            style="margin-right:30px"
          >
            <b> 视频</b></el-menu-item
          >
          <el-menu-item
            index="/system/lessen/onlineStudy/exam"
            style="margin-right:30px"
          >
            <b> 考试</b></el-menu-item
          >
          <el-menu-item index="/system/lessen/onlineStudy/history">
            <b> 学习记录</b></el-menu-item
          >
        </el-menu>
      </el-card>
    </el-header>
    <el-main>
      <el-card style="height:100vh">
        <router-view></router-view>
      </el-card>
    </el-main>
  </el-container>
</template>

<script>
// import final from "./onlineStudy/final.vue";
export default {
  mounted(){
    var username = localStorage.getItem("key");
    this.username = username;
  }
};
</script>

<style lang="less" scoped>
.el-card {
  border-radius: 10px;
  margin-bottom: 20px;
}
.el-main {
  margin-top: 50px;
}
.head {
  text-align: center;
}
.el-menu-demo {
  margin-left: 40% !important;
  font-size: 18px !important;
  border-bottom: none;
}
</style>
